import { defineStore } from "pinia"
import { Message } from "@arco-design/web-vue";
export const commonpinia = defineStore("commonpinia", {
   state: () => ({
      config: {} as any,
      openLogin: false, // 控制PC端登录框开关
      openMoney: false, // 控制PC端充值框开关
      managementShow: false, // 控制PC端系统管理框开关
      systemType: '',
   }),
   getters: {},
   actions: {
      // 获取配置文件
      getConfig: async function () {
         const config: any = await yujiRequest('/index/basic', { method: 'GET' });
         this.config = config.data

      },

   },
})